package com.boyunv.composite.example01;
/*
 *@description
 * 叶子节点   不保存其他叶子节点
 *@author boyunv
 *@create 2023/7/27 7:41
 *@version 1.0
 */

public class Leaf extends Component{
 @Override
 public void add(Component c) {

 }

 @Override
 public void remove(Component c) {

 }

 @Override
 public Component getChild(int i) {
  return null;
 }

 @Override
 public void operation() {
   //叶子节点的业务方法
 }
}
